import { ChangeDetectorRef, ElementRef, Optional, ViewChild, Input } from '@angular/core';
import { CTAFComponent } from '@ctaf/framework';
import { WidgetNBase, TabN, TabsetComponent } from '@ctaf/components';
import { ForeignExchangeComponent } from './components/foreign-exchange/foreignExchange.component';
import './widget.less';
@CTAFComponent({
    selector: 'ctaf-wg-widget',
    templateUrl: 'widget.component.html'
})
export class WidgetComponent extends WidgetNBase {
    
    constructor(
        cdr: ChangeDetectorRef,
        element?: ElementRef,
        @Optional() tabn?: TabN) {
        super(cdr, element, tabn);
        this.setSize(8, 4, 48, 40);
    }
    // //父子组件之间的通讯方式函数开始
    // @ViewChild(ForeignExchangeComponent) child_obj:ForeignExchangeComponent;
    // OnClick(){
    //     this.child_obj.fun1();
    // }
}
